import request from '@/utils/request'

// 上传分片
export function uploadSplit(data) {
  return request({
    url: `/file/upload`,
    method: 'POST',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data  // 配置
  })
}

//获取geoJson静态数据
export const getDataGeo = (name) => {
  return request({
    url: '/static/' + name + '.geojson',
    method: 'GET',
  });
};

//获取Json静态数据
export const getDataJson = (name) => {
  return request({
    url: '/static/' + name + '.json',
    method: 'GET',
  });
};
